<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>
</head>
<body>
<table border="1">
	<thead>Matriculas (${fn:length(matriculas)})</thead>
	<tbody>
		<tr>
			<td>Nombre y Apellido</td>
			<td>Curso</td>
			<td>Nombre Usuario</td>
			<td>Contraseña</td>
			<td>Pag.</td>
			<td>Not.</td>
			<td>Fact.</td>
			<td>Cert.</td>
			<td>Fecha Inicio</td>
			<td>Fecha Fin</td>
			<td>Partner</td>
			<!-- Campos que no se tienen que mostrar -->
			<td>Año Factura</td>	
			<td>Cod Matricula</td>
			<td>Email</td>
			<td>Baja</td>
			<td>Nombre Categoria</td>
			<td>Num Factura</td>
			<td>Payment Status</td>
			<td>Titulo</td>
		</tr>
		<c:forEach var="matricula" items="${matriculas}">
			<tr>
				<td>${matricula.nombre}</td>
				<td>${matricula.titulo}</td>
				<td>${matricula.nombreUsuario}</td>
				<td>${matricula.contrasenia}</td>
				<td><fmt:formatDate pattern="dd-MM-yyyy" value="${matricula.paymentDate}" /></td>
				<td><fmt:formatDate pattern="dd-MM-yyyy" value="${matricula.fechaNotificacion}" /></td>
				<td><fmt:formatDate pattern="dd-MM-yyyy" value="${matricula.fechaFactura}" /></td>
				<td></td>
				<td><fmt:formatDate pattern="dd-MM-yyyy" value="${matricula.fechaInicio}" /></td>
				<td><fmt:formatDate pattern="dd-MM-yyyy" value="${matricula.fechaFin}" /></td>
            	<td>${matricula.entidad}</td>
            	<!-- Campos que no se tienen que mostrar -->
            	<td>${matricula.anioFactura}</td>
            	<td>${matricula.codMatricula}</td>
            	<td>${matricula.email}</td>
            	<td>${matricula.baja}</td>
            	<td>${matricula.nombreCat}</td>
            	<td>${matricula.numFactura}</td>
            	<td>${matricula.paymentStatus}</td>
            	<td>${matricula.titulo}</td>
			</tr>
		</c:forEach>
	</tbody>
</table>
</body>
</html>